import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(persist)
export default pinia

/* import { useUserStore } from './user'
export { useUserStore } */

// !和上面等价
// export { useUserStore } from './user'

// 把 user 里面所有的按需导出，导入到这个文件，再此文件再按需导出一次
export * from './user'
